package com.quan.simples.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.quan.commons.base.BaseController;

@Controller
@RequestMapping(value = "/simples/th")
public class ThymeleafController extends BaseController {

	private Logger logger = LoggerFactory.getLogger(ThymeleafController.class);

	@RequestMapping(value = "/index")
	public String index(ModelMap map) {
		logger.info("====>thymeleaf");
		map.addAttribute("name", "thymeleaf-imooc");
		return "index";
	}

	@RequestMapping("/test")
	public String test(ModelMap map) {
		return "test";
	}
}
